/*
 * @Author: 撒哈拉的花儿 30940518@qq.com
 * @Date: 2024-11-12 21:23:39
 * @LastEditors: 撒哈拉的花儿 30940518@qq.com
 * @LastEditTime: 2024-11-23 22:25:01
 * @FilePath: \bl_portal_foreend\src\api\bl\users\users.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询用户信息列表
export function listBlUsers(query) {
  return request({
    url: '/bl/users/list',
    method: 'get',
    params: query
  })
}

// 查询用户信息详细
export function getBlUsers(userId) {
  return request({
    url: '/bl/users/' + userId,
    method: 'get'
  })
}

// 新增用户信息
export function addBlUsers(data) {
  return request({
    url: '/bl/users',
    method: 'post',
    data: data
  })
}

// 修改用户信息
export function updateBlUsers(data) {
  return request({
    url: '/bl/users',
    method: 'put',
    data: data
  })
}

// 删除用户信息
export function delBlUsers(userId) {
  return request({
    url: '/bl/users/' + userId,
    method: 'delete'
  })
}
